'use strict';

function average_to_letter(collection) 
{
  let t=0;
  for (let i=0;i<collection.length;i++)
    {
      t+=collection[i];
    }
  t=Math.ceil(t/10);
  let collectionA=['a','b','c','d','e','f','g','h'];
  let pass=collectionA[t-1];
  return pass;
}

module.exports = average_to_letter;

